package com.xhdx.pattern.state;
/**
 * 应用环境类，简单的理解为调用环境就可以了.
 * Context 来查看当状态 State 改变时的行为变化
 */
public class Context {
   private State state;
   
   public Context(){
       this.state = null;
    }

    public void setState(State state){
       this.state = state;      
    }

    public State getState(){
       return state;
    }
}
